package org.example.lethear.dto.whisper;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * 悄悄话创建请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WhisperCreateRequest {
    
    @NotBlank(message = "内容不能为空")
    @Size(min = 1, max = 1000, message = "内容长度必须在1-1000个字符之间")
    private String content;
    
    @Size(max = 500, message = "图片URL长度不能超过500个字符")
    private String imageUrl;
    
    @NotNull(message = "接收者类型不能为空")
    private String recipientType; // username, code
    
    @NotBlank(message = "接收者值不能为空")
    @Size(min = 1, max = 100, message = "接收者值长度必须在1-100个字符之间")
    private String recipientValue;
    
    @NotNull(message = "是否匿名不能为空")
    private Boolean isAnonymous;
    
    @Size(max = 50, message = "发送者名称长度不能超过50个字符")
    private String senderName; // 自定义发送者名称（匿名时使用）
} 